package model;

import java.util.ArrayList;
import java.util.List;

public class ClassA {

	private List<ClassB> classesB;
	private String property;

	public List<ClassB> getClassesB() {
		return classesB;
	}

	public void setClassesB(List<ClassB> classesB) {
		this.classesB = classesB;
	}

	public ClassA(String pro) {
		classesB = new ArrayList<ClassB>();
		property = pro;
	}

	public void addClassB(ClassB b) {
		classesB.add(b);
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public int getColSpan() {
		int size = 0;
		for (ClassB b : classesB) {
			size += b.getClassesC().size();
		}
		return size;
	}

}
